#!/bin/bash

RELEASE_DIR=/to_share/tmp
FILES="addon.xml icon.png"

REPO=$(pwd | sed 's/.*\/\([^\/]*\)$/\1/')
REPO=repository.${REPO}
echo $REPO
mkdir $REPO
cp $FILES $REPO
zip ${REPO}.zip ${REPO}/*
mv ${REPO}.zip $RELEASE_DIR
rm -rf $REPO
